package com.lanhe.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanhe.common.utils.wechat.vo.PrePayVo;
import com.lanhe.common.utils.zhifubao.vo.ZhiFuBaoPayNotifyDataVo;
import com.lanhe.order.domain.LhOrdersLevel;

import java.util.List;

/**
 * 会员订单表(LhOrdersLevel)表服务接口
 *
 * @author zhanggl
 * @since 2024-01-04 22:27:25
 */
public interface ILhOrdersLevelService extends IService<LhOrdersLevel> {

	/**
	 * VIP购买
	 *
	 * @param level 实体
	 * @return int
	 * @author zhanggl
	 * @date 2024/1/4
	 */
	PrePayVo insertOrdersLevel(LhOrdersLevel level);
	/**
	 * 支付宝购买
	 *
	 * @param level 实体
	 * @return int
	 * @author zhanggl
	 * @date 2024/1/4
	 */
	String insertOrdersLevelPayALi(LhOrdersLevel level);

	/**
	 * VIP购买-积分方式
	 *
	 * @param level 实体
	 * @return int
	 * @author zhanggl
	 * @date 2024年01月17日20:25:02
	 */
	int insertOrdersLevelByScore(LhOrdersLevel level);

	/**
	 * 微信数据回调
	 *
	 * @param notifyData 对象
	 * @author zhanggl
	 * @date 2024/1/5
	 */
	void notifyOrdersLeve(String notifyData);

	/**
	 * 支付宝数据回调
	 *
	 * @param notifyData 对象
	 * @author zhanggl
	 * @date 2024/1/5
	 */
	void notifyZhiFuBaoOrdersLeve(ZhiFuBaoPayNotifyDataVo notifyData);

	/**
	 * 根据订单编号查询订单
	 *
	 * @param orderNumber 订单编号
	 * @return com.lanhe.order.domain.LhOrdersLevel
	 * @author zhanggl
	 * @date 2024/1/5
	 */
	LhOrdersLevel selectByOrderNumber(String orderNumber);

	/**
	 * 会员订单列表
	 *
	 * @param lhOrdersLevel
	 * @return
	 */
	List<LhOrdersLevel> selectLhOrdersLevelList(LhOrdersLevel lhOrdersLevel);

	/**
	 * 自定义支付
	 * @param level
	 * @return
	 */
	PrePayVo insertZidingyiOrdersLevel(LhOrdersLevel level);
}

